{extends file='layout/main.html'}
{block name="main"}
<div class="main_title">
	<h2>菜单{if $info}更新{else}添加{/if}</h2>
</div>
{if $info}
<form action="?url=category/update&id={$info.id}" method="post" accept-charset="utf-8">
{else}
<form action="?url=category/create&id={$smarty.get.id}" method="post" accept-charset="utf-8">
{/if}
<input type="hidden" name="parent_id" value="{$info.parent_id}">
<div class="con_blk">
  <h3 class="light_gray">菜单名称</h3>
	<input name="title" type="text" class="text" value="{$info.title}">
</div>
<div class="con_blk">
  <h3 class="light_gray">封面图片</h3>
	{if $info}
	<img src="/Services/images/cropped_100_100/attachments{$info.img}" width="100" height="100" border="0">
	{/if}
	{include file="lib/upload.html" upload_name="img" }
</div>
<div class="con_blk">
  <h3 class="light_gray">排序</h3>
	<input name="view_order" type="text" class="text" value="{$info.view_order}">
</div>
<div class="con_blk">
  <h3 class="light_gray">是否隐藏</h3>
	<input type="checkbox" name="is_hide" value="1" rel="switch" {if $info.is_hide} checked {/if}  />
</div>
</form>

<div class="btn_blk b_t">
	<div class="fr">
		<a href="#" class="btn2 fr ml20 cancel">取消</a>
		<a href="#" class="btn1 fr save">确定</a>
	</div>
</div>

{/block}